{% extends "admin/base.html" %}

{% block title %}修改密码 - {{ config.site_name }}{% endblock %}

{% block content %}
<div class="admin-content">
    <h1>修改密码</h1>
    
    <form id="changePasswordForm" method="post" action="/admin/change-password" class="form">
        <div class="form-group">
            <label for="old_password">当前密码</label>
            <input type="password" id="old_password" name="old_password" required class="form-input">
        </div>
        
        <div class="form-group">
            <label for="new_password">新密码</label>
            <input type="password" id="new_password" name="new_password" required class="form-input">
            <small class="form-hint">密码长度不能少于6个字符</small>
        </div>
        
        <div class="form-group">
            <label for="confirm_password">确认新密码</label>
            <input type="password" id="confirm_password" name="confirm_password" required class="form-input">
        </div>
        
        <div class="form-actions">
            <button type="submit" class="btn btn-primary">修改密码</button>
            <a href="/admin/dashboard" class="btn btn-secondary">取消</a>
        </div>
    </form>
</div>

<script src="/static/js/admin/change-password.js"></script>
{% endblock %}